from Properties import Properties


class Loophole:

    def __init__(self, wrapper=None):
        if wrapper is None:
            wrapper = {}
        self.wrapper = wrapper

    def get_property(self, property: Properties):
        return self.wrapper[property.name]

    def add_property(self, key, value):
        self.wrapper[key] = value

    def __str__(self) -> str:
        return super().__str__()
